import request from '@/utils/request'

export default {
  //分页
  getCourseList(page,limit,courseQueryVo) {
    return request({
      url: `/edu/api/course/getCourseList/${page}/${limit}`,
      method: 'post',
      data:courseQueryVo
    })
  },
  //查询所有分类
  getAllSubject() {
    return request({
      url: `/edu/subject/getAllSubject`,
      method: 'get'
    })
  },
  //查询课程详情
  getCourseInfo(id){
    return request({
      url:`/edu/api/course/getCourseInfo/${id}`,
      method:'get'
    })
  }
}
